package com.library.bookmanagement.entity;

import java.util.Date;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：管理员实体类
 */
public class Admin  {
    private Integer aId;

    private String aName;

    private String aPassword;

    private String aEmail;

    private Date createTime;

    private Date lastTime;

    private String imgUrl;
    private Integer role;


    public Admin(){}
    public Admin(String aName, String aPassword, String aEmail, Date createTime, Date lastTime, Integer role) {
        this.aName = aName;
        this.aPassword = aPassword;
        this.aEmail = aEmail;
        this.createTime = createTime;
        this.lastTime = lastTime;
        this.role = role;
    }

    public Admin(Integer aId, String aName, String aPassword, String aEmail, Date createTime, Date lastTime, String imgUrl, Integer role) {
        this.aId = aId;
        this.aName = aName;
        this.aPassword = aPassword;
        this.aEmail = aEmail;
        this.createTime = createTime;
        this.lastTime = lastTime;
        this.imgUrl = imgUrl;
        this.role = role;
    }



    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "aId=" + aId +
                ", aName='" + aName + '\'' +
                ", aPassword='" + aPassword + '\'' +
                ", aEmail='" + aEmail + '\'' +
                ", createTime=" + createTime +
                ", lastTime=" + lastTime +
                ", imgUrl='" + imgUrl + '\'' +
                '}';
    }

    public Integer getId() {
        return aId;
    }

    public void setId(Integer aId) {
        this.aId = aId;
    }

    public String getName() {
        return aName;
    }

    public void setName(String aName) {
        this.aName = aName == null ? null : aName.trim();
    }

    public String getPassword() {
        return aPassword;
    }

    public void setPassword(String aPassword) {
        this.aPassword = aPassword == null ? null : aPassword.trim();
    }

    public String getaEmail() {
        return aEmail;
    }

    public void setaEmail(String aEmail) {
        this.aEmail = aEmail == null ? null : aEmail.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl == null ? null : imgUrl.trim();
    }
}